home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Mark Nelson <markn@airmail.net>
- Newsgroups: comp.lang.c++
- Subject: Re: Calling DLL-Functions?
- Date: Wed, 06 Mar 1996 16:59:50 -0600
- Organization: customer of Internet America
- Message-ID: <313E18E6.494E@airmail.net>
- References: <4hhsr6$vm5@taco.cc.ncsu.edu> <4hktpc$1h2@vega.info.isbiel.ch>
- NNTP-Posting-Host: dal22-02.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Juestrich Marc wrote:
- >
- > I'm just a beginner in programming C/C++, so it's maybe easy to anser this
- > basic question:
- >
- > How can I call a Function in a DLL. I've got the description of this DLL
-
- C/C++ programmers usually call functions in a DLL by linking their
- application to an import library. The import library is a .LIB file that
- contains information on the ordinals and names of the functions in a DLL. If
- you don't have an import library for a given DLL, you can even create one
- using an IMPLIB utility.
-
- Current versions of most PC based C++ compilers come with import libraries
- already built for windows DLLs like USER.EXE.
-
- You can also do it dynamically via calls to LoadLibrary() and
- GetProcAddress(), but it requires more work on your part. If you don't have
- a need for run time function binding, the import library is the way to go.
-
- Mark Nelson
- http://web2.airmail.net/markn
-